<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
use Interop\Container\ContainerInterface;

class AgentController
{
    protected $app;

    public function __construct(ContainerInterface $ci)
    {
        $this->app = $ci;
    }

    public function index(Request $request)
    {
        $data = $request->getParsedBody();

        return json_encode(array('code' => 200, 'data' => array()));
    }
}